package com.kaochong.xcx.dao;

import com.kaochong.xcx.entity.FriendsHelp;

import org.springframework.data.repository.query.Param;

public interface FriendsHelpMapper {
    int deleteByPrimaryKey(Long id);

    int insert(FriendsHelp record);

    int insertSelective(FriendsHelp record);

    FriendsHelp selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FriendsHelp record);

    int updateByPrimaryKey(FriendsHelp record);
	
    /************************* 自定义方法 ****************************/
    
    /**
     * 重置今日好友助力
     * @param openId
     * @param target
     * @return
     */
	Integer resetFriendHelp(@Param("openId") String openId, @Param("target") Integer target);
}